/* 
 * File:   Renderer.h
 * Author: nata
 *
 * Created on March 23, 2012, 4:52 PM
 */

#ifndef RENDERER_H
#define	RENDERER_H

#include <map>

#include <opencv/cv.h>
#include <opencv/highgui.h>

#include "Node.h"
#include "Layout.h"

using namespace std;

class Renderer {
    int width;
    int height;
    int alpha;
    int beta;
    void drawBound(Node* raiz, map<Node*, int> *id, CvFont* font, IplImage* image, int posX, int posY);
public:
    Renderer(int width, int height, int alpha, int beta);
    IplImage* drawImage(Node* raiz, map<Node*, int> *id);
};

#endif	/* RENDERER_H */

